package _12interface.homework7;

public abstract class Persons {
    String name;
    String gender;
    int age;
    void eat(){
        System.out.println("吃饭");
    }
    void sleep(){
        System.out.println("睡觉");
    }
    abstract void study();
}
class Student extends Persons{


    public Student(String name, String gender, int age) {
        super();
    }

    @Override
    void study() {
        System.out.println("增强动手实践能力");
    }
}
class Teacher extends Persons{
    public Teacher(String name, String gender, int age) {
        super();
    }
    @Override
    void study() {
        System.out.println("增强语言能力");
    }
}
